<?php if (!isset($redirect)) { ?>
<div class="checkout-product">
  <table>
    <thead>
      <tr>
        <td></td>
        <td class="name">产品</td>
        <td class="name">名称</td>
        <td class="name">规格</td>
        <td class="price"><?php echo $column_price; ?></td>
      </tr>
    </thead>
    <tbody>
      <?php foreach ($products as $product) { ?>
      <?php if($product['recurring']): ?>
        <tr>
            <td colspan="6" style="border:none;"><image src="catalog/view/theme/default/image/reorder.png" alt="" title="" style="float:left;" /><span style="float:left;line-height:18px; margin-left:10px;">
                <strong><?php echo $text_recurring_item ?></strong>
                <?php echo $product['profile_description'] ?>
            </td>
        </tr>
      <?php endif; ?>
      <tr>
        <!-- td><img src="<?php echo $product['image'];?>" alt="<?php echo $product['name'];?>" /></td -->
        <td class="image"><?php if ($product['image']) { ?>
              <a href="<?php echo $product['href']; ?>"  target="_blank"><img src="<?php echo $product['image']; ?>" alt="<?php echo $product['name']; ?>" title="<?php echo $product['name']; ?>" /></a>
              <?php } ?></td>
        <td class="name"><a href="<?php echo $product['href']; ?>" target="_blank"><?php echo $product['name']; ?></a></td>
        <td class="name"><?php echo $product['app_name']; ?></td>
        <td class="name"><?php echo $product['instance_type']; ?></td>
        <td class="price"><?php echo $product['hour_price']; ?><br/><?php echo $product['month_price']; ?></td>
      </tr>
      <?php } ?>
      <?php if(is_array($vpc_price)){ ?>
                <?php foreach($vpc_price as $vpc){ ?>
                        <tr>
                         <td><img src="<?php echo $vpc['vpc_image'];?>" alt="<?php echo $this->language->get('text_item_vpc');?>" title="<?php echo $this->language->get('text_item_vpc');?>" /></td>
                        <td class="name"><?php echo $this->language->get('text_item_vpc');?></td>
                        <td class="name"><?php echo $vpc['vpc_name'];?></td>
                        <td class="type"><?php echo $this->language->get('text_item_vpc_type');?></td>
                        <td class="price"><?php echo $vpc['hour_price']; ?><br/><?php echo $vpc['month_price'];?></td>
                        </tr>
                <?php  }?>
      <?php  }?>

      <?php if(is_array($eips)){ ?>
      <?php foreach($eips as $eip){ ?>
      <tr>
          <td><img src="<?php echo $eip['eip_image'];?>" alt="<?php echo $this->language->get('text_item_eip');?>" title="<?php echo $this->language->get('text_item_eip');?>" /></td>
          <td class="name"><?php echo $this->language->get('text_item_eip');?></td>
          <td class="name"><?php echo $eip['eip_name'];?></td>
          <td class="type"><?php echo $eip['bandwidth'];?>Mbps</td>
          <td class="price"><?php echo $eip['hour_price']; ?><br/><?php echo $eip['month_price'];?></td>
      </tr>
      <?php  }?>
      <?php  }?>
      
       <?php if(is_array($hd_price)){ ?>
      <?php foreach($hd_price as $hd){ ?>
      <tr>
          <td><img src="<?php echo $hd['hd_image'];?>" alt="<?php echo $this->language->get('text_item_harddisk');?>" title="<?php echo $this->language->get('text_item_harddisk');?>" /></td>
          <td class="name"><?php echo $this->language->get('text_item_harddisk');?></td>
          <td class="name"><?php echo $hd['hd_name'];?></td>
          <td class="type"><?php echo $hd['size'];?>GB</td>
          <td class="price"><?php echo $hd['hour_price']; ?><br/><?php echo $hd['month_price'];?></td>
      </tr>
      <?php  }?>
      <?php  }?>

    </tbody>

      <tfoot>
      <tr>
          <td colspan="4" class="price"><b><?php echo $column_total; ?>:</b></td>
          <td class="total"><?php echo $hour_total;?><br/><?php echo $month_total;?></td>
      </tr>
      </tfoot>

  </table>
</div>
<div class="payment"><?php echo $payment; ?></div>
<?php } else { ?>
<script type="text/javascript"><!--
location = '<?php echo $redirect; ?>';
//--></script>
<?php } ?>